<p:dialog xmlns="http://www.w3.org/1999/xhtml"
      	  xmlns:h="http://java.sun.com/jsf/html"
      	  xmlns:f="http://java.sun.com/jsf/core"
      	  xmlns:ui="http://java.sun.com/jsf/facelets"
      	  xmlns:p="http://primefaces.org/ui"
      	  modal="false"  resizable="true" 
		  widgetVar="dialogAddAula" id="idDialogAdAula" closable="true"
		  appendToBody="true" title="Adicionar Aulas"> 	
  	
	 <link rel="stylesheet" type="text/css" href="./estilos.css"/>  
<h:form id="formDialogAdAula" prependId="false">
<h:panelGroup id="pgDialogAddAula">

 	<p:growl id="growlModalidade" showDetail="true"/> 
    	<h:panelGrid columns="2" style="margin-right:10%;">   
            <h:outputLabel value="Modalidade" styleClass="outputLabel"/>  
            <h:outputLabel  /> 
  			<p:inputText value="#{funcionarioBean.professorAula.modalidade.descricao}" styleClass="inputDescricao"/> 
  			<p:commandButton value="Procurar" actionListener="#{funcionarioBean.openDialogConsultarModalidade}" process="@this" styleClass="commandButton"/> 
        </h:panelGrid>  

      
    	<h:panelGrid columns="2">
    		<h:outputText value="Horas Semanais" styleClass="outputLabel"/>
    		<h:outputText value="Salário" styleClass="outputLabel"/>
    		<p:inputText value="#{funcionarioBean.professorAula.qtdHoras}" styleClass="inputData"/>
    		<p:inputText value="#{funcionarioBean.professorAula.salario}" styleClass="inputData"/>
    	</h:panelGrid>  
    	<h:panelGrid columns="2">
			<p:commandButton value="Adicionar" action="#{funcionarioBean.addAula}" update="pgDialogAddAula" process="@this pgDialogAddAula" styleClass="commandButton"/>
			<p:commandButton value="Cancelar" styleClass="commandButton"/>
			
    	</h:panelGrid> 

 </h:panelGroup>
 </h:form>
 
 <ui:include src="/funcionario/dialogConsultarModalidade.xhtml"></ui:include>
</p:dialog>
